package io.github.weiranyi.feign.fallback;

import io.github.weiranyi.feign.ProductFeign;
import io.github.weiranyi.pojo.Product;
import org.springframework.stereotype.Component;

// 熔断器触发的回调逻辑
@Component
public class ProductFeignFallBack implements ProductFeign {

    @Override
    public Product query(Integer id) {
        return null;
    }

    @Override
    public String getPort() {
        return "Feign情况下的兜底数据：-1";
    }
}
